-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate test off enzyme and karma #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job! A few items and that scrollbar test started failing again 🤔
src/Overlay.tsx
Outdated
@@ -222,7 +222,9 @@ const Overlay = React.forwardRef<HTMLElement, OverlayProps>( | |||
onEntered, | |||
}); | |||
|
|||
return container ? ReactDOM.createPortal(child, container) : null; | |||
return ( | |||
<>{container ? ReactDOM.createPortal(<>{child}</>, container) : null}</> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was wrapping the portal + children in fragments required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just for TS, but should be harmless i think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm unsure. I did pull down the branch and reverting the changes compiled for me. Maybe it conflicted with an earlier change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, nuking node_modules fixed it
😥 This was more work than i was hoping for. But in a position to actually test out react 19
Switching tests from karma to vitest, and remove all the remaining enzyme